// pages/demo14/demo14.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    //性别
    gender:'',
    //水果
    fruit:[
        {
            id:0,
            name:"苹果",
            value:"apple"
        },
        {
            id:1,
            name:"香蕉",
            value:"banner"
        },
        {
            id:2,
            name:"橘子",
            value:"orange"
        },
        {
            id:3,
            name:"葡萄",
            value:"grape"
        }
    ],
    changeFurit:[]
  },
  sexchange(e){
    console.log(e);
    this.setData({
        gender
    })
  },
  fruitchange(e){
    this.setData({
        changeFurit : e.detail.value
    })
  }
})